package net.csdn.business.common.domain.request;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 更新成员邀请链接配置信息对象DTO invite_link
 * 
 * @author zhangyl
 * @date 2024-04-02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UpdateInviteLinkDTO implements Serializable
{

    private static final long serialVersionUID = 1L;

    /** 邀请码 */
    @NotBlank(message = "id不能为空")
    private String id;

    /** 邀请默认角色：20：浏览者、30：开发者、40：管理员 */
    //@NotNull(message = "roleAcess不能为空")
    @Range(min = 20, max = 40, message = "roleAcess不合法")
    private Integer roleAccess;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm", timezone = "GMT+8")
    private Date linkExpireDate;

   /* @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm", timezone = "GMT+8")
    private Date applyExpireDate;*/

    //@NotBlank(message = "currUserId不能为空")
    private String currUserId;

    /** 是否需要管理员审核： 0-否; 1-是 */
    private Integer needCheck=0;

}
